package com.bykj.property.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bykj.property.mapper.SysUserMapper;
import com.bykj.property.model.SysUser;
import com.bykj.property.sys.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author yiming
* @title: LoginServiceImpl
* @projectName property
* @description: TODO
* @date 2019/6/1220:33
*/
@Service
public class LoginServiceImpl implements LoginService {
@Autowired
private SysUserMapper sysUserMapper;

@Override
public SysUser getByUsername(String username) {
QueryWrapper<SysUser> queryWrapper=new QueryWrapper();
    queryWrapper.eq("username",username);
    return  sysUserMapper.selectOne(queryWrapper);
    }
    }
